package com.sumainfor.wx.tenant.service.impl;

import com.sumainfor.wx.tenant.dao.FwmsSearchMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  工作台搜索
 * <p>
 *
 * @author: zc
 * @create: 2019-09-20 10:15
 **/
@Service
public class FwmsSearchService implements Serializable {

    @Autowired
    FwmsSearchMapper fwmsSearchMapper;


    /**
     * 根据租客姓名或者手机号查询租客详情
     * @author zhoucong
     * @data 2019/9/20
     * @Param
     * @return
     */
    public List<Map<String,Object>> getNameOrPhoneList(String search){
        return fwmsSearchMapper.getNameOrPhoneList(search);
    }

    public Map<String,Object> getTenantXinxi(Map<String,Object> params){
        return fwmsSearchMapper.getTenantXinxi(params);
    }
}
